package com.sky.service;

import com.sky.dto.*;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

/**
 * @version 1.0
 * @Author 郭腾高
 * @Date 2024/9/27 15:34
 */
public interface OrderService {

    OrderSubmitVO insert(OrdersSubmitDTO ordersSubmitDTO) throws Exception;

    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);


    PageResult pageQuery4User(int page, int pageSize, Integer status);

    OrderVO getOrderDetailById(Long id);

    void userCancelById(Long id) throws Exception;

    void oneMoreOrder(Long id);

    PageResult page(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderStatisticsVO getStatusNumber();

    void refuse(OrdersRejectionDTO ordersRejectionDTO) throws Exception;

    void accept(OrdersConfirmDTO ordersConfirmDTO);

    void cancel(OrdersCancelDTO ordersCancelDTO);

    void delevery(Long id);

    void complete(Long id);

    void reminder(Long id);
}
